<!-- <script type="text/javascript">
$(function () {
	var url = '${contextPath}script/sys/role.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
			
		}
	});
});
</script> -->
<#import "/freemarker/modeltype.ftl" as mt>
<div>
	<h3>编辑角色信息</h3>
</div>
<div style="width:400px;float:left;">
		<form id="editRoleForm">
			<table>
				<tr height="40">
					<td class="table-left">所属机构</td>
					<td>
						<div class="input-group">
							<span class="btn-group">	
								<input class="form-control" name="on" id="on" type="text" value="${(role.ocn)!''}"  readonly="readonly" style="width: 135px;"/>
								<input type="hidden" name="oc" id="oc" value="${(role.oc)!''}"/>
							</span>
						</div>
					</td>
				</tr>
				<tr height="40">
					<td class="table-left">名称</td>
					<td>
						<input type="text" id="name" name="name" value="${(role.name)!''}" />
						<input type="hidden" id="code" name="code" value="${(role.code)!''}" />
					</td>
				</tr>
				<!-- <tr height="40">
					<td class="table-left">是否默认角色</td>
					<td><@mt.YesOrNo value=((role.isDefault)!"") r=true name='isDefault' d=false mc=false/></td>
				</tr> -->
				<tr>
					<td class="table-left">备注</td>
					<td><textarea id="remark" name="remark" cols="30" rows="5">${(role.remark)!''}</textarea></td>
				</tr>
				<tr height="20"></tr>
				<tr height="40">
					<td colspan="2" style="text-align: center;">
						<a href="#" class="btn btn-info" onclick="javascript: saveRole_role(); return false;">
							<i class="fontello-icon-floppy"></i> &nbsp;保&nbsp;&nbsp;存
						</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" class="btn btn-primary" onclick="javascript: sys_load_handle('organRole'); return false;">
							<i class="fontello-icon-block"></i>&nbsp;取&nbsp;&nbsp;消
						</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
